import request from '@/utils/request'

// 查询TCertificateInfo列表
export function listInfo(query) {
  return request({
    url: '/certificateInfo/info/list',
    method: 'get',
    params: query
  })
}

// 查询TCertificateInfo详细
export function getInfo(id) {
  return request({
    url: '/certificateInfo/info/' + id,
    method: 'get'
  })
}

// 新增TCertificateInfo
export function addInfo(data) {
  return request({
    url: '/certificateInfo/info',
    method: 'post',
    data: data
  })
}

// 修改TCertificateInfo
export function updateInfo(data) {
  return request({
    url: '/certificateInfo/info',
    method: 'put',
    data: data
  })
}

// 删除TCertificateInfo
export function delInfo(id) {
  return request({
    url: '/certificateInfo/info/' + id,
    method: 'delete'
  })
}

// 导出TCertificateInfo
export function exportInfo(query) {
  return request({
    url: '/certificateInfo/info/export',
    method: 'get',
    params: query
  })
}

// 区域属性结构列表
export function getTree(query) {
  return request({
    url: '/area/areaInfo/area/treeselect',
    method: 'get',
    params: query
  })
}